// right.c

#include <ansi.h>

inherit F_CLEAN_UP;

int main(object me, string arg)
{
    function f;

    seteuid(getuid());

    if (!arg)
        return notify_fail("你要答应谁？\n");

    notify_fail("这人没有向你提出什么要求啊？\n");
    if (!functionp(f = me->query_temp("pending/answer/" + arg + "/right", 1)))
        return 0;

    me->delete_temp("pending/answer/" + arg);
    return evaluate(f);
}

int help(object me)
{
    write( @HELP
指令格式: right <someone>

同意某人向你提出的要求。
HELP );
    return 1;
}
